#include <stdio.h>

int func(int* a, int b)
{
    static int i = 1; // definition
    *a = *a + b;
    i += *a + 1;
    return i;
}

int i = 1; // definition
int main() {
    int j = 1; // definition
    j = func(&i, j); // call
    {
        int j = 1; // definition
        j = func(&i, j); // call
        printf("i = %d, j = %d\n", i, j);
    }
    printf("i = %d, j = %d\n", i, j);

    return 0;
}

